extern long warrsingle(long, long*);
int test() {
	long x = 123456;
	long dst[5] = {-1,-1,-1,-1,-1};
	long expected = 666;
	long result = warrsingle(x,dst);
	if (result!=expected) {
		return 0;
	}
	if (dst[0]!=x) {
		return 0;
	}
	return 1;
}

RET(test()==1);
